package com.yin.project.admin.framework;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import java.util.Date;

/**
 * Created by Eason on 2016/11/24.
 */
@MappedSuperclass
public class DataEntity extends Entity {
    /*逻辑删除标识*/
    @Column(name = "LogicalDel")
    protected Integer logicalDel = 0;
    /*创建时间*/
    @Column(name = "CreateTime")
    protected Date createTime;
    /*更新时间*/
    @Column(name = "UpdateTime")
    protected Date updateTime;
    /*版本号*/
    @Column(name = "Version")
    protected Long version;

    public Integer getLogicalDel() {
        return logicalDel;
    }

    public void setLogicalDel(Integer logicalDel) {
        this.logicalDel = logicalDel;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

}
